package com.yootk.config.product;

import com.yootk.di.config.MessageConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Profile("product")     // 当前为product生产环境
@Configuration
public class YootkMessageConfig {

    @Bean("messageConfig")
    public MessageConfig messageConfig() {
        MessageConfig config = new MessageConfig();
        config.setHost("dev.message.yootk.com");
        config.setEnable(true);
        config.setPort(8889);
        return config;
    }
}
